<?exit?>
<!--{template 'templates/site/default/header.html.php', 1}-->
<div class="wrap cat mbm cl">
	<div class="cat_c">
		<div id="category">
			<ul>
			<!--{eval $cat_count = 0;}-->
			<!--{loop $_G['categorylist'] $cat}-->
				<!--{if $cat[upid] == 0}-->
				<!--{eval $cat_count ++;}-->
				<li id="cat_{$cat['catid']}"{if $cat_count > 8} style="display:none;"{/if}>
					<h3><b>&gt;</b><a href="street.php?catid={$cat['catid']}">{$cat['name']}</a></h3>
					<!--{if $cat['havechild']}-->
						<!--{eval $subcatids = explode(', ', $cat['subcatid']); }-->
						<div class="category_c" id="cat_{$cat['catid']}_menu">
							<!--{loop $subcatids $c_cat}-->
							<!--{if $_G['categorylist'][$c_cat]['upid'] != 0 && $_G['categorylist'][$c_cat]['catid'] > 0}-->
							<a href="street.php?catid={$_G['categorylist'][$c_cat]['catid']}">$_G['categorylist'][$c_cat]['name']</a>
							<!--{/if}-->
							<!--{/loop}-->
						</div>
					<!--{/if}-->
				</li>
				<!--{/if}-->
				<!--{/loop}-->
			</ul>
			<!--{if $cat_count > 8}-->
			<a id="more_cat" href="javascript:;" title="{$lang['more_shop']}">{$lang['more_shop']}</a>
			<!--{/if}-->
		</div>
		<!--{ad/modulebanner/mtm/5}-->
	</div>
	<div id="focus">
		<!--{if $_G['brandads']['ads_show_type']=="topic"}-->
		<div id="play">
			<div id="play_text"></div>
			<div id="play_list">
				<!--{loop $_G['brandads']['topic'] $topicinfo}-->
				<a href="{$topicinfo['url']}" target="_blank">
					<img src="{$topicinfo['image']}" title="" alt="" />
				</a>
				<!--{/loop}-->
			</div>
		</div>
		<!--{else}-->
		$bannerhtml
		<!--{/if}-->
		<!--{block name="sql" parameter="sql/SELECT%20itemid%20FROM%20{$_SC['tablepre']}shopitems%20WHERE%20recommend%3D1%20AND%20grade%20%3E2%20ORDER%20BY%20displayorder%20ASC%20%2C%20itemid%20DESC/limit/0,6/tpl/index_recshop/pagetype/index/usetype/shop"}-->
	</div>
	<div class="ann">
		<div id="quick" class="mbm cl">
			<a href="attend.php" class="btn" style="margin-right: 10px;"><span>$lang['attend']</span></a>
			<!--{if ckfounder($_G['uid']) || $_G['member']['allowadmincp']}-->
			<a href="admin.php" target="_blank" class="btn"><span>$lang['admincp']</span></a>
			<!--{elseif $_G['firstshopid']}-->
			<a href="panel.php" target="_blank" class="btn"><span>$lang['shopcp']</span></a>
			<!--{else}-->
			<a href="javascript:;" class="btn btng"><span>$lang['shopcp']</span></a>
			<!--{/if}-->
		</div>

		<div class="bm">
			<div class="bm_h">
			<em><a href="sitenotice.php" target="_blank">$lang['more']</a></em>
			<h3>$lang['sitenotice']</h3>
			</div>
			<div class="bm_c">
				<ul class="tlist cl">
					<!--{if is_array($_G['sitenoticelist'])}-->
						<!--{loop $_G['sitenoticelist'] $notice}-->
							<li><a target="_blank" href="sitenotice.php?itemid={$notice['itemid']}" style="{$notice['style']}" title="{$notice['subject']}">{$notice['briefsubject']}</a></li>
						<!--{/loop}-->
					<!--{/if}-->
				</ul>
			</div>
		</div>
	</div>
</div>
<!--{ad/horbanner/wrap mbm/1}-->
<div class="wrap cl">
	<div class="main">
		<!--{if $_G['brandads']['enablediscount']}-->
		<!--{template 'static/blockstyle/index_discount.html.php', 1}-->
		<!--{ad/modulebanner/ad_module mbm/1}-->
		<!--{/if}-->
		<!--{if $_G['brandads']['enablehotgoods']}-->
		<!--{template 'static/blockstyle/index_hotgoods.html.php', 1}-->
		<!--{ad/modulebanner/ad_module mbm/2}-->
		<!--{/if}-->
		<!--{if $_G['brandads']['enableconsume']}-->
		<!--{template 'static/blockstyle/index_consume.html.php', 1}-->
		<!--{ad/modulebanner/ad_module mbm/3}-->
		<!--{/if}-->
		<!--{if $_G['brandads']['enablegroupbuy']}-->
		<!--{template 'static/blockstyle/index_groupbuy.html.php', 1}-->
		<!--{ad/modulebanner/ad_module/4}-->
		<!--{/if}-->
	</div>
	<div class="side">
		<div class="bm">
			<div class="bm_h">
			<em><a href="notice.php" target="_blank">$lang['more']</a></em>
			<h3>$lang['shop_notice']</h3>
			</div>
			<div class="bm_c">
				<ul class="tlist cl">
					<!--{if is_array($shopnotice)}-->
						<!--{loop $shopnotice $id $notice}-->
							<li><a target="_blank" href="store.php?id={$notice['shopid']}&action=notice&xid={$id}" style="{$notice['style']}" title="{$notice['subject']}">{$notice['subject']}</a></li>
						<!--{/loop}-->
					<!--{/if}-->
				</ul>
			</div>
		</div>
		<!--{ad/sidebar/ad_sidebar mbm/1}-->
		<!--{eval $inids = $_G['brandads']['hotshop'];}-->
		<div class="bm">
			<div class="bm_h">
			<h3>$lang['hotshop']</h3>
			</div>
			<div class="bm_c">
				<ul class="tlist tlp cl" id="hot_shop">
				<!--{eval $tmpnum=1}-->
				<!--{loop $_G['brandads']['hotshoparr'] $tmpid}-->
				<!--{eval $tmparr = $_BCACHE->getshopinfo($tmpid['itemid'], array('thumbwidth'=>'50', 'thumbheight'=>'50'))}-->
				<!--{if !empty($tmparr['itemid'])}-->
					<li class="cl {if $tmpnum == 1} a{/if}">
						<div class="thumb"><a target="_blank" href="store.php?id={$tmparr['itemid']}" title="{$tmparr['subject']}"><img src="$tmparr['thumb-50x50']" alt="{$tmparr['subject']}"/></a></div>
						<p><a target="_blank" href="store.php?id={$tmparr['itemid']}">{$tmparr['subject']}</a></p>
						<span class="xi1"><a href="street.php?catid={$tmparr['catid']}">{$_G['categorylist'][$tmparr['catid']]['name']}</a></span>
					</li>
					<!--{eval $tmpnum++;}-->
				<!--{/loop}-->
				<!--{/if}-->
				</ul>
			</div>
		</div>
		<!--{eval unset($tmparr, $tmpads, $tmpid, $tmpnum);}-->
		<!--{ad/sidebar/ad_sidebar mbm/2}-->
		<!--{if is_array($_SBLOCK['new_shop'])}-->
		<div class="bm">
			<div class="bm_h">
			<h3>$lang['latestshop']</h3>
			</div>
			<div class="bm_c">
				<ul class="tlist cl">
				<!--{loop $_SBLOCK['new_shop'] $ikey $value}-->
					<!--{eval $value = $_BCACHE->getshopinfo($value['itemid'], array('thumbwidth'=>'50', 'thumbheight'=>'50'))}-->
					<!--{if !empty($value['itemid'])}-->
					<li class="cl">
						<div class="thumb"><a href="store.php?id={$value['itemid']}" target="_blank"><img src="$value['thumb-50x50']" alt="{$value['subject']}" /></a></div>
						<p><a href="store.php?id={$value['itemid']}" target="_blank">{$value['subject']}</a></p>
						<p class="xi1"><a href="street.php?catid={$value['catid']}">{$_G['categorylist'][$value['catid']]['name']}</a></p>
					</li>
					<!--{/if}-->
				<!--{/loop}-->
				</ul>
			</div>
		</div>
		<!--{/if}-->
		<!--{ad/sidebar/ad_sidebar/3}-->
	</div>
</div>

<script charset="utf-8" type="text/javascript" src="static/js/index.js"></script>
<!--{template 'templates/site/default/footer.html.php', 1}-->
